from django.urls import path

from . import views

urlpatterns = [
# 判断手机号是否重复
#     path('mobiles/<mobile:mobile>/count/', views.MobileCountView.as_view()),
# 注册
    path('api/v1.0/user/register/', views.RegisterView.as_view()),
    # 登录路由:
    path('api/v1.0/login/', views.LoginView.as_view()),
    # 保持登录路由:
    path('api/v1.0/session/', views.SessionView.as_view()),
    # 退出路由:
    path('api/v1.0/logout/', views.LogoutView.as_view()),


    # path('/', views.IndexView.as_view()),
    #图形验证码API


    # 判断手机号是否重复
    # path('mobiles/<mobile:mobile>/count/', views.MobileCountView.as_view()),

    # 用户中心路由:
    path('api/v1.0/user/profile/', views.UserInfoView.as_view()),
    path('api/v1.0/user/auth/', views.IdcardView.as_view()),
    # 注册
    # path('api/v1.0/user/register/', views.RegisterView.as_view()),

   # path('mobiles/<mobile:mobile>/count/', views.MobileCountView.as_view()),
    # 注册
    # 房源信息
    path('api/v1.0/user/houses/',  views.UserHouse.as_view())

]

